out of memory - memory full

good morning :smiley:
sometimes my M1 32GB mac run out of memory using keyshot.
is there a way to tell to keyshot to use a swap disk space like in photoshop ?

thx

It’s harder for a renderer to actually use swap disks I think since it needs all ingredients to be able to calculate a scene in memory. At least, I think it works like that but people may correct me.

I’ve 64GB and a PC but I never noticed it ran that high in memory usage. Maybe you can analyse how much memory for example your textures in your scene take. Since every texture in KeyShot eats quite some RAM.

I found this old topic and maybe it works to reduce the ‘render output memory size’. I see I’ve it at only 512MB, I guess that’s standard. In the topic they mention the issue while rendering really high resolution images and those really use a massive amount of memory I remember from when I used V-Ray in CPU mode.

Topic: [RESOLVED]Out of memory error with large image texture (keyshot.com)

If you still run into issues you might be able to render the view in parts. That worked sometimes with V-Ray. Another thing V-Ray could do, not sure about KeyShot, is rendering directly to disk. That way you didn’t get any output on screen but it did render without issue.

1 Like

really thx Oscar.
I noticed that Keyshot works with ram + hard disk space. for example, when the Mac reports that it has memory problems, the finder indicates that the ram occupied by Keyshot is around 120 giga…
I’ll read the article you suggest.

Wow, I’m not sure what you are rendering but that really sounds like a bizarre amount. Think MacOS and Windows do basically the same, they both automatically manage the memory in an efficient way and I think MacOS tends to be more memory efficient looking at the memory certain applications use than Windows.

The 120GB looks a bit suspicious. Maybe it’s best you open a support ticket so they can take a look. I know sometimes it’s hard to share scenes because of NDAs but if it’s some bug it’s nice if they can solve it and I guess they can also sign documents so the files keep save looking at the large companies which use KS.

Not sure when it happens with you but with V-Ray I had it if I rendered really huge resolutions to be used for really large prints. With such things it makes sense it uses a lot of RAM since it needs to have the image in the viewport. Bit the same as with Photoshop and huge image files. Even these days there are limits on what it can handle.

1 Like

thx oscar,
maybe the big size depends on the step file produced by Edge ?
I mean too many surfaces to compute and render, also those not necessary like screws and so on…

I’m not sure how big the model itself is at the hard drive? Lots of file formats support instances/proxies of parts so there’s like on detailed screw and the other copies of the screw are just coordinates/transformations of the same geometry.

Not sure how KeyShot handles those from STEP files. I can image if it reads very detailed screws as unique screws and there are thousands it can be problematic.

Is the memory usage also very large using another program to open the file? If not I would really check it with support.

1 Like